package ru.stepanovdn.trading.server.service.tinkoff

import ru.stepanovdn.trading.server.service.dictionary.InstrumentService

import java.math.BigDecimal

interface ITinkoffOrderAPI {

    class OrderResult (
        var commission: BigDecimal? = null,
        var price: BigDecimal? = null
    )

    fun buy(instrument: InstrumentService.Instrument, price: BigDecimal, count: Int): OrderResult

    fun sell(instrument: InstrumentService.Instrument, price: BigDecimal, count: Int): OrderResult
}
